<form method="post" <?php if( isset($action) ) echo 'action="' . $action . '"' ?>>
						<div style="margin: 15px 0;">
							<label style="display: block; ">Title:</label>
							<input style="width: 80%; display: block;" name="name" type="text" <?php if( isset( $name ) ) echo "value=\"$name\""; ?> />
						</div>
						<div style="margin-bottom: 15px;">
							<label style="display: block; ">Date:</label>
							<input style="width: 10em; display: block;" class="datepicking" name="date" type="text" <?php if( isset( $date ) ) echo 'value="'. date( 'Y/m/d', strtotime($date) ) .'"'; ?> />
						</div>	
						<div style="margin-bottom: 15px;">
							<label style="display: block;  clear: both;">Start time:</label>
							<select name="starthour">
<?php foreach( range(0, 23) as $val ) : ?>							
								<option value="<?php echo $val ?>"<?php if($val == $starthour) echo " selected=\"selected\""; ?>><?php echo $val ?></option>
<?php endforeach; ?>							
							</select>:<select name="startminute">
								<option value="0"<?php if($startminute == 0) echo " selected=\"selected\""; ?>>00</option>
								<option value="30"<?php if($startminute == 30) echo " selected=\"selected\""; ?>>30</option>
							</select>
						</div>
						<div style="margin-bottom: 15px;">
							<label style="display: block;  clear: both;">End time:</label>
							<select name="endhour">
<?php foreach( range(0, 23) as $val ) : ?>							
								<option value="<?php echo $val ?>"<?php if($val == $endhour) echo " selected=\"selected\""; ?>><?php echo $val ?></option>
<?php endforeach; ?>							
							</select>:<select name="endminute">
								<option value="0"<?php if($endminute == 0) echo " selected=\"selected\""; ?>>00</option>
								<option value="30"<?php if($endminute == 30) echo " selected=\"selected\""; ?>>30</option>
							</select>						</div>							
						<div style="margin-bottom: 15px;">
							<label style="display: block; ">Venue:</label>
							<input style="width: 80%; display: block;" name="venue" type="text" <?php if( isset( $venue ) ) echo "value=\"$venue\""; ?> />
						</div>	
						<div style="margin-bottom: 15px;">
							<label style="display: block;">Admission Fee:</label>
							<input style="width: 80%; display: block;" name="fee" type="text" <?php if( isset( $fee ) ) echo "value=\"$fee\""; ?> />
						</div>	
						<div style="margin-bottom: 15px; clear: both; margin-top: 29px;">
							<label style="display: block; ">Description:</label>
							<textarea style="width: 80%; height: 240px;" name="description"><?php if( isset( $description ) ) echo $description ?></textarea>
						</div>	
						
						<div>
							<input type="submit" value="Save" />
						</div>
<?php 
if( isset( $hiddenInputs ) ) {
	foreach( $hiddenInputs as $key => $val ) {
?>						<input type="hidden" name="<?php echo $key ?>" value="<?php echo $val ?>" />
<?php	
	}
}
?>
					</form>
